{php include wl_template('common/header');}
<ul class="nav nav-tabs">
    <li><a href="{php echo web_url('recruit/industryPosition/positionList')}">职位列表</a></li>
    <li class="active"><a href="javascript:;">{if $id}编辑{else}添加{/if}职位</a></li>
</ul>
<div class="app-content">
    <div class="app-form">
        <div class="panel panel-default">
            <form class="form-horizontal form-validate" method="post">
                <div class="form-group">
                    <label class="col-sm-2 control-label">所属行业<span class="must-fill">*</span></label>
                    <div class="col-sm-9">
                        <select name="data[industry_id]" class="form-control select2">
                            {loop $industryList $val}
                                <optgroup label="{$val['title']}">
                                    {loop $val['list'] $vo}
                                        <option value="{$vo['id']}" {if $info['industry_id'] == $vo['id']}selected="selected"{/if}>{$vo['title']}</option>
                                    {/loop}
                                </optgroup>
                            {/loop}
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">职位名称</label>
                    <div class="col-sm-9">
                        <input class="form-control" type="text" required name="data[title]" value="{$info['title']}" maxlength="45"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">排序</label>
                    <div class="col-sm-9">
                        <input class="form-control" type="number" digits="true" name="data[sort]" value="{$info['sort']}" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label"></label>
                    <div class="col-sm-9">
                        <input type="hidden" name="token" value="{$_W['token']}" />
                        <input type="hidden" name="id" value="{$id}" />
                        <input type="submit" name="submit" value="提交" class="btn btn-primary col-sm-1 min-width" />
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
{php include wl_template('common/footer');}
